import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { TimeService } from '../../service/timeservice/time.service';
import { PopupComponent, SkinType } from 'ngx-weui';

@Component({
  selector: 'app-inspectionrecord',
  templateUrl: './inspectionrecord.component.html',
  styleUrls: ['./inspectionrecord.component.css']
})
export class InspectionrecordComponent implements OnInit {

  @ViewChild('simple') simplePopup: PopupComponent;

  shown = false;
  radio: any;
  res: any = {
    cho2: true,
    agree: true
  };
  constructor(private service:TimeService,private router:Router) {
    this.radio=this.service.person;
    this.res.radio=this.radio[0];
  }
  goinfo(type) {
    this.router.navigate(['/inspectionrecord/inspectionrecordinfo', type]);
  }
  ngOnInit() {
  }

}
